package com.upay.android.domain.response;

import java.io.Serializable;
import java.util.Date;

public class ResponseHeader implements Serializable {
	
	/* ---- Constants ---- */
	private static final long serialVersionUID = 201202272149L;
	public final static String CURRENT_VERSION = "1.0.0";
	
	/* ---- Instance Variables ----*/
	
	private Date date = null;
	private String version = CURRENT_VERSION;
	private String user;
	private Boolean status = Boolean.TRUE;
	private long processingTime;

	
	/* ---- Constructors ---- */
	
	public ResponseHeader() {
		super();
	}
	
	public ResponseHeader(
		String user,
		Boolean status,
		long processingTime) {
		this.user = user;
		this.date = new Date();
		this.status = status;
		this.processingTime = processingTime;
	}
	
	
	/* ---- Getters and Setters ----*/
	
	/**
	 * @return the date
	 */
	public Date getDate() {
		return date;
	}
	/**
	 * @param date the date to set
	 */
	public void setDate(Date date) {
		this.date = date;
	}
	/**
	 * @return the user
	 */
	public String getUser() {
		return user;
	}
	/**
	 * @param user the user to set
	 */
	public void setUser(String user) {
		this.user = user;
	}
	/**
	 * @return the version
	 */
	public String getVersion() {
		return version;
	}
	/**
	 * @param version the version to set
	 */
	public void setVersion(String version) {
		this.version = version;
	}


	/**
	 * @return the status
	 */
	public Boolean getStatus() {
		return status;
	}


	/**
	 * @param status the status to set
	 */
	public void setStatus(Boolean status) {
		this.status = status;
	}

	/**
	 * @return the processingTime
	 */
	public long getProcessingTime() {
		return processingTime;
	}

	/**
	 * @param processingTime the processingTime to set
	 */
	public void setProcessingTime(long processingTime) {
		this.processingTime = processingTime;
	}

}
